package cn.bdqn.domain;

import java.io.Serializable;

/**
 * 发货单配货对象
 * @author dkj
 */
public class SendEquip implements Serializable {


    /**
     * id
     */
    private Integer id;


    /**
     * 发货单id
     */
    public Integer sendFreightId;

    /**
     *发货单对象
     */
    private SendFreight sendFreight;

    /**
     * 货物id
     */
    private Integer cargoId;

    /**
     * 货物对象
     */
    private Cargo cargo;

    /**
     * 货物名
     */
    private String cargoName;

    /**
     * 发货数量
     */
    private Integer sendNumber;

    /**
     * 剩余数量
     */
    private Integer surplusSum;


    /**
     * 是否补单 1.yes  2.no
     */
    private Integer ifReplenish;

    public Integer getSendFreightId() {
        return sendFreightId;
    }

    public void setSendFreightId(Integer sendFreightId) {
        this.sendFreightId = sendFreightId;
    }

    public Integer getCargoId() {
        return cargoId;
    }

    public void setCargoId(Integer cargoId) {
        this.cargoId = cargoId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public SendFreight getSendFreight() {
        return sendFreight;
    }

    public void setSendFreight(SendFreight sendFreight) {
        this.sendFreight = sendFreight;
    }

    public Cargo getCargo() {
        return cargo;
    }

    public void setCargo(Cargo cargo) {
        this.cargo = cargo;
    }

    public String getCargoName() {
        return cargoName;
    }

    public void setCargoName(String cargoName) {
        this.cargoName = cargoName == null ? null : cargoName.trim();
    }

    public Integer getSendNumber() {
        return sendNumber;
    }

    public void setSendNumber(Integer sendNumber) {
        this.sendNumber = sendNumber;
    }

    public Integer getSurplusSum() {
        return surplusSum;
    }

    public void setSurplusSum(Integer surplusSum) {
        this.surplusSum = surplusSum;
    }

    public Integer getIfReplenish() {
        return ifReplenish;
    }

    public void setIfReplenish(Integer ifReplenish) {
        this.ifReplenish = ifReplenish;
    }


    @Override
    public String toString() {
        return "SendEquip{" +
                "id=" + id +
                ", sendFreight=" + sendFreight +
                ", cargo=" + cargo +
                ", cargoName='" + cargoName + '\'' +
                ", sendNumber=" + sendNumber +
                ", surplusSum=" + surplusSum +
                ", ifReplenish=" + ifReplenish +
                '}';
    }
}
